package com.springboot.cloud.demos.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.springboot.cloud.common.web.entity.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_moment")
public class Moment extends BasePo {
    private String userId;
    private String title;
    private String position;
    private String topic;
    private String subject;
    private String location;
    private String appointmentDate;
    private String requirement;
    private Integer type;
    private Integer supportNum = 0;
    private Integer commentNum = 0;
    private Integer signUpNum = 0;
    private Float longitude;
    private Float latitude;
    /**
     * 0、未删除 1、已删除
     */
    @TableLogic//逻辑删除标识
    @TableField(select = false)//查询的时候不显示
    private String deleted="N";

}
